<?php
function smarty_insert_getusernamezq2($param, &$smarty) {
	
	if ($_SESSION['union_username']=='') {
		$string="<form method=\"post\" id=\"formzq2\" action=\"https://passport.9wee.com/login\" onsubmit=\"javasctipt: return checklogininfo();\">
		        <li>通行证:　<input style=\"background:url(../images/zuqiu2/zq2_t_bg.gif) 0 0 repeat-x; height:16px; width:96px; line-height:16px; border:1px solid #c0c0c0;\" name=\"username\" type=\"text\" /><input id='_REFERER' type='hidden' name='_REFERER' value='http://".$param['url']."/game/?game=104'></li>
				<li>密　码:　<input style=\"background:url(../images/zuqiu2/zq2_t_bg.gif) 0 0 repeat-x; height:16px; width:96px; line-height:16px; border:1px solid #c0c0c0;\" name=\"password\" type=\"password\" /></li>
				<li><input type=\"image\" src=\"../images/zuqiu2/zq2_dl01.jpg\" />　<a href=\"javascript:;\" onclick=\"var obj=document.getElementById('cover');obj.style.display='block';obj.style.height=document.documentElement.scrollHeight+'px';server_select_zq2('open');\"\"><img src=\"../images/zuqiu2/zq2_dl02.jpg\" /></a></li><form>";
	} else {
		$string="<li>您好，".$_SESSION['union_username']."</li>
				<li>欢迎回到武林足球经理II </li>				
				<li><a href=\"javascript:;\" onclick=\"server_select('open');\"><img src=\"../images/zuqiu2/zq2_jinruyouxi.jpg\" /></a></li>";
	}
	return $string;
 }
?>
